*******************************************************
* Table 1: Balance across variables in the baseline
*******************************************************
preserve 
*foreach var in read math ps_pc ls_pc stu_att_pc {
*	replace `var'_bl = . if missing(`var'_el)
*}

la var read "ASER Reading"
la var math "ASER Maths"

estpost ttest $balancevars, by(treatment)
eststo difference

esttab difference ///
    using "$tables/Table1.tex" ///
    , ///
    cells(" count(fmt(0) label(N)) mu_1(fmt(2) label(Control)) mu_2(fmt(2) label(Treatment)) p(fmt(2) label(p-value) star)") ///
    starlevels(* 0.10 ** 0.05 *** 0.01) ///
    nonumbers noobs ///
    order($balancevars) ///
    label ///
    nomtitle ///
    booktabs ///
    replace
restore
